package com.baidu.foody.data.remote

import com.baidu.foody.models.FoodRecipe
import com.baidu.foody.models.Result
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.QueryMap

/**
 * 网络请求方法
 */
interface FoodApi {
    @GET("complexSearch")
    suspend fun getRecipes(@QueryMap queryMap: Map<String,String>): Response<FoodRecipe>

    @GET("{id}/information")
    suspend fun getRecipeDetail(@Path("id") recipeId: Int):Response<Result>
}